﻿<?xml version="1.0"?>
<language name='Lua (inline)' caseSensitive='true'>
  <keywords>and|break|do|else|elseif|end|false|for|function|if|in|local|nil|not|or|repeat|return|then|true|until|while</keywords>
  <indents>do|else|function|repeat|then</indents>
  <outdents>else|elseif|end|until</outdents>
  <tokenClasses>
    <tokenClass name='identifier'>
      <pattern>^([a-zA-Z_][a-zA-Z_0-9]*)</pattern>
    </tokenClass>
    <tokenClass name='whitespace'>
      <pattern>^([ \t\n\r]+)</pattern>
    </tokenClass>
    <tokenClass name='number'>
      <pattern>^([0-9]+(.[0-9]+)?([eE]-?[0-9]+)?)</pattern>
    </tokenClass>
    <tokenClass name='string'>
      <pattern>^(\&apos;(\\d{1,3}|\\[abfnrtv\\\&apos;\&quot;\[\]\n]|.)*?\&apos;|\&quot;(\\d{1,3}|\\[abfnrtv\\\&apos;\&quot;\[\]\n]|.)*?\&quot;|\[{2}(\[[^\[]|\][^\]]|[^\[\]])*(((?&lt;O&gt;\[{2})(\[[^\[]|\][^\]]|[^\[\]])*)+((?&lt;C-O&gt;\]{2})(\[[^\[]|\][^\]]|[^\[\]])*)+)*(?(O)(?!))\]{2}|\[{2}[\s\S]*)</pattern>
    </tokenClass>
    <tokenClass name='comment'>
      <pattern>^(--\[{2}(\[[^\[]|\][^\]]|[^\[\]])*(((?&lt;O&gt;\[{2})(\[[^\[]|\][^\]]|[^\[\]])*)+((?&lt;C-O&gt;\]{2})(\[[^\[]|\][^\]]|[^\[\]])*)+)*(?(O)(?!))\]{2}|--\[{2}[\s\S]*|--[\s\S]*)</pattern>
    </tokenClass>
    <tokenClass name='operator'>
      <pattern>^(#|\+|-|\*|/|\^|==|=|~=|&lt;=|&gt;=|&lt;|&gt;|\(|\)|\{|}|\[|]|;|:|,|\.\.\.|\.\.|\.)</pattern>
    </tokenClass>
  </tokenClasses>
  <productions/>
</language>
